package com.liang.text5;

public class Text5Inner {
    public static void main(String[] args) {
        new Inner(){
            @Override
            public void show() {
                System.out.println("匿名内部类");
            }
        }.show();

        Inner2 i = new Inner2(){

            @Override
            public void show1() {
                System.out.println("show1");
            }

            @Override
            public void show2() {
                System.out.println("show2...");
            }
        };
        i.show1();
        i.show2();
    }
}
